package net.sunofbeach.blog.services;


import net.sunofbeach.blog.response.ResponseResult;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;


public interface IImageService {
    ResponseResult upLoadImage(String original,MultipartFile file);
    //尝试使用cos来上传图片
    ResponseResult cosUploadImage(String original, MultipartFile file);
    void viewImage(HttpServletResponse response, String imageId) throws IOException;

    ResponseResult listImages(int page, int size  ,String original);

    ResponseResult deleteById(String imageId);

    void createQrCode(String code, HttpServletResponse response, HttpServletRequest request);
}
